package com.td.module.farmer.controller.admin.consultation.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 农事咨询 Excel 导出 Request VO", description = "参数和 ConsultationPageReqVO 是一致的")
@Data
public class ConsultationExportReqVO {

    @ApiModelProperty(value = "农事问题")
    private String agriculturalIssues;

    @ApiModelProperty(value = "咨询者")
    private String consultant;

    @ApiModelProperty(value = "咨询者id")
    private Long userId;

    @ApiModelProperty(value = "回答答案")
    private String questionAnswering;

    @ApiModelProperty(value = "回复人")
    private String respondent;

    @ApiModelProperty(value = "查看状态")
    private Integer whetherView;

    @ApiModelProperty(value = "创建日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
